package cn.xiuxius.embedded.toolwindow.model;

import lombok.experimental.Accessors;

import java.util.List;
import java.util.function.Supplier;

@Accessors(chain = true)
public class FlagCommandOption extends AbstractCommandOption<Object> {

    public FlagCommandOption(String cmdFlag, boolean defaultValue) {
        super(cmdFlag, Boolean.toString(defaultValue), true);
    }



    @Override
    public boolean isValid() {
        return true;
    }

    @Override
    public AbstractCommandOption<Object> options(Supplier<List<Object>> provider) {
        super.setOptions(List.of());
        return this;
    }
}
